package lab2;

import java.util.ArrayList;
import java.util.List;

public class EmployeeStructure {
    List<Employee> employeeList = new ArrayList<>();

    public void add(Employee e) {
        employeeList.add(e);
    }

    public void remove(Employee e) {
        employeeList.remove(e);
    }

    public void accept(VisitorInterface v){
        for (Employee e:employeeList){
            e.accept(v);
        }
    }
}
